package com.qf.pojo;

/**
 * @author 高圆圆
 * @date 2023/6/6 16:50
 * 订单项实体
 */
public class OrderItem {
    /**
     * itemid   varchar(32) NOT NULL
     * count    int(11) NULL
     * subtotal double NULL
     * pid  varchar(32) NULL
     * oid  varchar(32) NULL
     */
    private String itemid ;  //订单项编号
    private int    count  ;  //订单项中包含的商品数量
    private double subtotal ;//小计金额
    private Product product ;//订单项包含的指定的商品实体

    //订单项维度---:一个订单项属于某个订单
    private Order  order    ; //订单项属于哪个订单

    public OrderItem() {
    }

    public String getItemid() {
        return itemid;
    }

    public void setItemid(String itemid) {
        this.itemid = itemid;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public double getSubtotal() {
        return subtotal;
    }

    public void setSubtotal(double subtotal) {
        this.subtotal = subtotal;
    }

    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    public Order getOrder() {
        return order;
    }

    public void setOrder(Order order) {
        this.order = order;
    }
}
